package com.elai.baseconfig.service.impl;
import com.elai.baseconfig.domain.ApplicationAttributeDO;
import com.elai.baseconfig.mapper.ApplicationAttributeMapper;
import com.elai.baseconfig.service.ApplicationAttributeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 应用程序和事件关系
 *
 * @author elai
 * @date 2021-04-03
 */
@Service
public class ApplicationAttributeServiceImpl implements ApplicationAttributeService
{
    @Autowired
    private ApplicationAttributeMapper applicationAttributeMapper;

    @Override
    public List<ApplicationAttributeDO> findBaseUserAttributes(String appCode) {
        return applicationAttributeMapper.findBaseUserAttributes(appCode);
    }

    @Override
    public int deleteBaseUserAttributes(Long appCode) {
        return applicationAttributeMapper.deleteBaseUserAttributes(appCode);
    }

    @Override
    public int  insertBaseUserAttributes(ApplicationAttributeDO applicationAttributeDO) {
        return applicationAttributeMapper.insertBaseUserAttributes(applicationAttributeDO);
    }
}
